<?php
namespace Home\Controller;
use Think\Controller;
class SendController extends Controller {
    public function index(){
    	$this->display();
    }
    
    public function getFileList(){
		$dir =  dirname(dirname(__FILE__)) . '/file';
		//扫描文件夹
		$file = scandir($dir);
		$data = array();
		foreach($file as $k => $v){
			if($file[$k] != '.' && $file[$k] != '..'){
				$data[] = $file[$k];
			}
		}
		return ajaxReturn(1,'获取成功',$data);
    }
}

?>